package com.lcf.common.util;

import java.time.Duration;
import java.time.LocalTime;

public class Demo {

    public static void main(String[] args) {

        LocalTime of = LocalTime.of(9, 12);
        LocalTime of1 = LocalTime.of(17, 41);
        Duration between = Duration.between(of, of1);
        long hours = between.toHours();
        between = Duration.between(of, of1.minusHours(hours));
        long minutes = between.toMinutes();
        System.out.println(hours + ":" + minutes);

    }
}
